<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0"></meta>
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Title</title>
</head>
<body>
<h1>欢迎来到主页</h1>
<table border="1">
    <tr>
        <td>ID</td>
        <td>节日名</td>
        <td>点赞数</td>
        <td>操作</td>
    </tr>
    {% for item in data %}
    <tr>
        <td>{{ item.id }}</td>
        <td>{{ item.name }}</td>
        <td>{{ item.num }}</td>
        <td><a href="/click?id={{ item.id }}">点赞</a></td>
    </tr>
    {% endfor %}
</table>


</body>
</html>